import axios from "axios";
import {Result} from "@/types/global.ts";
export const queryList = (params:any)=>{
    return axios.get<Result>('/admin/article/tags/list',{params})
}
export const add = (data:any)=>{
    return axios.post<Result>('/admin/article/tags/add',data)
}
export const edit = (data:any)=>{
    return axios.post<Result>('/admin/article/tags/update',data)
}
export const del = (id:string|number)=>{
    return axios.delete('/admin/article/tags/delete',{params:{id}})
}